package com.example.demo.model.dto;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ErrorResponseDTO {
    private LocalDateTime timestamp;
    private int status;
    private String error;
    private String message;
    private String path;
    private List<?> details;

    public ErrorResponseDTO(int status, String error, String message, String path) {
        this(status, error, message, path, null);
    }

    public ErrorResponseDTO(int status, String error, String message,
                            String path, List<?> details) {
        this.timestamp = LocalDateTime.now();
        this.status = status;
        this.error = error;
        this.message = message;
        this.path = path;
        this.details = details;
    }
}